/* Layout */
const Layout = resolve => require(['@/views/layout/Layout'], resolve);

const FormalCustomerRouterMap = {
  id: 28,
  path: '/user',
  component: Layout,
  redirect: '/user/userlist',
  name: '正式客户',
  meta: {title: '正式客户', icon: 'usermanage', power: 'user'},
  showMode: 'DEFAULT',
  children: [
    {
      id: 29,
      path: 'userlist',
      name: '我的客户',
      component: resolve => require(['@/views/user/index.vue'], resolve),
      meta: {title: '我的客户', icon: 'userlist', power: 'user.userlist'},
      children: [
        {
          path: 'modify',
          name: '新增/编辑客户',
          component: resolve => require(['@/views/user/modifyUser.vue'], resolve),
          meta: {title: '新增/编辑客户', power: 'user.userlist.modify'},
          hidden: true
        }, {
          path: 'capitalDetail',
          name: '财务明细',
          component: resolve => require(['@/views/user/capital_detail.vue'], resolve),
          meta: {title: '财务明细', power: 'user.userlist.capitalDetail'},
          hidden: true
        }, {
          path: 'achievement',
          name: '业绩录入',
          component: resolve => require(['@/views/user/achievement.vue'], resolve),
          meta: {title: '业绩录入', power: 'user.userlist.achievement'},
          hidden: true
        }, {
          path: 'communicationRecord',
          name: '沟通记录',
          component: resolve => require(['@/views/user/communicationRecord.vue'], resolve),
          meta: {title: '沟通记录', power: 'user.userlist.achievement'},
          hidden: true
        }
      ]
    }, {
      id: 199,
      path: 'afterSales',
      name: '售后管理',
      component: resolve => require(['@/views/user/afterSales/index.vue'], resolve),
      meta: {title: '售后管理', icon: 'aftersale', power: 'user.afterSales'},
      children: [
        {
          path: 'details',
          name: '售后详情',
          component: resolve => require(['@/views/user/afterSales/details.vue'], resolve),
          meta: {title: '售后详情', power: 'user.userlist.modify'},
          hidden: true
        }
      ]
    }, {
      id: 169,
      path: 'authentication',
      name: '认证管理',
      component: resolve => require(['@/views/user/authentication'], resolve),
      meta: {title: '认证管理', icon: 'orderlist', power: 'member.authentication'}
    }, {
      path: 'authenticationDetails',
      name: '认证详情',
      component: resolve => require(['@/views/user/authenticationDetails'], resolve),
      meta: {title: '认证详情', power: 'member.authenticationDetails'},
      hidden: true
    }
  ]
}

export default FormalCustomerRouterMap;
